﻿#include "tableviewdatarefnodeadapter.h"
#include "viewdatarefnode.h"

CTableViewDataRefNodeAdapter::CTableViewDataRefNodeAdapter()
    : CViewDataRefNodeAdapter()
{

}

bool CTableViewDataRefNodeAdapter::InitViewDataRefNode()
{
    auto pRoot = GetInvisibleViewDataRefNode();

    std::list<std::shared_ptr<CViewDataRefNode>> listNode;
    listNode.push_back(std::make_shared<CViewDataRefNode>());
    listNode.push_back(std::make_shared<CViewDataRefNode>());
    listNode.push_back(std::make_shared<CViewDataRefNode>());
    listNode.push_back(std::make_shared<CViewDataRefNode>());
    listNode.push_back(std::make_shared<CViewDataRefNode>());
    pRoot->InsertRows(0,1,listNode);
}
